from PyQt5.QtCore import QObject , pyqtSignal

class QTypeSingnal(QObject):


    def __init__(self):
        super(QTypeSingnal,self).__init__()

        self.senfmsg = pyqtSignal(object)
    def run(self):
        self.sendmsg.emit('hello ')

class QTS(QObject):
    def __init__(self):
        super(QTS,self).__init__()

    def get(self,msg):
        print('get message'+msg)

if __name__ == '__main__':
    send=QTypeSingnal()
    slot=QTS()

    print('bind')
    send.sendmsg.connect(slot.get)
    send.run()


    print('unbind')
    send.sendmsg.disconnect(slot.get)
    send.run()